﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WXYW.BLL;
using WXYW.DAL;

namespace WXYW
{
    public partial class UpgradeDisagree : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitialPage();
            }
        }

        private void InitialPage()
        {
            UpgradeService service = new UpgradeService();
            UpgradeForm upForm = service.GetProductDetailForm(long.Parse(Request.QueryString[Constants.QUERYSTR_UPGRADE_ID]));
            productTypeLabel.Text = upForm.ApplicationProduct.ProductType.ProductTypeName;
            serialNumberLabel.Text = upForm.ApplicationProduct.ProductSerialNumber;
            problemTypeLabel.Text = upForm.ApplicationProduct.ProblemType.Name;
            decriptionLabel.Text = upForm.ApplicationProduct.ProductProblemDescription;
            appearanceLabel.Text = upForm.ApplicationProduct.ProductAppearance;
            repairTypeLabel.Text = upForm.ApplicationProduct.ProductRepairType;
            examineResultLabel.Text = upForm.ApplicationProduct.Remark;
            upgradeReason.Text = upForm.UpgradeReason;
            disagreeReasonLabel.Text = upForm.Suggestion;
        }
    }
}
